<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib prefix="s" uri="/struts-tags"%>
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>员工权限管理</title>
<%@ include file="../../common/Style.jsp"%>
<script>
$(document).ready(function(){
	parent.$.messager.progress('close'); 

	dataGrid = $('#dataGrid').datagrid({
		url : 'basicDataJSON!selectSystemConfig',
		queryParams: null,
		fit : true,
		border : false,
		pagination : true,
		pageSize : 10,
		pageList : [ 10, 20],		
		checkOnSelect : false,
		selectOnCheck : false,
		singleSelect:false,
		nowrap : false,
		singleSelect:false,
		columns : [ 
			{	
				field : 'id',
				title : 'ID',
				width : 30
			},
 		    {	
				field : 'configName',
				title : '配置名字',
				width : 200,
				sortable:true,
				order:'desc'
			},{	
				field : 'configCode',
				title : '配置编码',
				width : 200			
			},{	
				field : 'value',
				title : '配置详情',
				width : 250			
			}, {
				field : 'comment',
				title : '备注信息',
				width : 250
			}, {
				field : 'statusS',
				title : '状态',
				width : 80,
				sortable:true			
			}, {
				field : 'createBy',
				title : '创建人',
				width : 80,
				sortable:true			
			},{
				field : 'createTime',
				title : '创建时间',
				width : 150,
				sortable:true			
			},{				
				field : 'action',
				title : '编辑',
				width : 50,
			formatter : function(value, row, index) {
				var str = '';

					str += $.formatString('<a href="#" onclick="updateSystemConfig(\'{0}\');"><img border="0" src="{1}" title="更改客户信息"/></a>', row.id, '<%=request.getContextPath()%>/conf_files/easyUI/themes/icons/text_1.png');
								
				return str;
			}
		}]
	});




	
});


function selectRoleFunctions(){
	$('#tt').tree({
	    url: 'basicDataJSON!selectFunctions',  // 初始请求地址
	    method: 'get',
	    checkbox: true,
	    animate: true
	});
}


function getChecked(){
   // var nodes = $('#tt').tree('getChecked');
   // "getChecked:标识选中的树枝"
   // "indeterminate:表示子树枝只有部分选中的父树枝"
    var nodes = $('#tt').tree('getChecked', 'indeterminate'); 
    var s = '';
    for(var i=0; i<nodes.length; i++){
        if (s != '') s += ',';
        s += nodes[i].text;
    }
    alert(s);
}



</script>

</head>
<body>

	<div class="easyui-layout" data-options="fit : true,border : false">
		<div data-options="region:'north',border:false" style="height: 95px;">
			<s:form id="barcodeSearchForm" name="barcodeSearchForm" action="" method="POST" theme="simple">
			  
				<table width="98%" align="center" class="OuterTable">
			<tr>
				<td>
					<table width="100%" border="0">
										<tr>
											<td height="50" colspan="7">		
												<table width="100%" border="0">
													<input type="hidden" id="isInitialized" name="formBean.isInitialized" />
													<tr class="PBAOuterTableTitale">
														<td height="31" >系统角色权限：
															
														</td>
													</tr>
												<tr>
																			
									<td>		
										<a onclick="addMenu();" href="javascript:void(0);"
											class="easyui-linkbutton c6" style="height:25px;"
											data-options="iconCls:'icon-search'">新增角色</a>	
										 <a href="#" class="easyui-linkbutton" onclick="getChecked()">GetChecked</a> 
										 
									</td>													
				

									</tr>
								</table>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>

			</s:form>
		</div>

		<div data-options="region:'center',border:false">
			<table id="dataGrid" border="0">
			</table>
						 
		</div>

	</div>
</body>
</html>